web3.js web3.utils.isBN
web3.utils.isBN(bn)
与えられた値が
BN.js
のインスタンスかどうかを確認します。
パラメータ
1.
bn
-
Object
BN.js
インスタンス
戻り値
Boolean
サンプル
code:example.js
var number = new BN(10);
web3.utils.isBN(number);
true
参考
https://web3js.readthedocs.io/en/1.0/web3-utils.html#isbn
#web3.js
#web3.js@1.0
web3.js 日本語 API リファレンス